<%@ include file="/WEB-INF/jsp/includes/header.jsp"%>
<table width="592">
	<tr>
		<td class="title"><s:property value="title"/></td>
	</tr>
	<tr><td>&nbsp;</td></tr>		
	<s:if test="pacient != null">
		<s:form id="pacientForm" action="showPacient" method="post" validate="true">
			<tr>
				<td class="metge" colspan="2">
					<s:property value="metge.nom"/> <s:property value="metge.primerCognom"/>
					<s:property value="metge.segonCognom"/> - 
					<s:text name="especialitat_en"/><s:property value="metge.especialitat"/> -
					<s:text name="collegiat"/><s:property value="metge.numeroColegiat"/>
				</td>
			</tr>
			<tr><td>&nbsp;</td></tr>								
			<s:push value="pacient">
				<!-- Inici dades comuns dels usuaris -->
				<tr id="row_<s:property value="id"/>">
					<s:hidden name="id" value="%{id}"/>
					<td><s:label key="nom"/></td>
				</tr>
				<tr>
					<td><s:label key="primerCognom"/></td>
				</tr>
				<tr>
					<td><s:label key="segonCognom"/></td>
				</tr>
				<tr>
					<td><s:label key="dni"/></td>
				</tr>
				<tr>
					<td><s:label key="unitatOrganitzativa" name="unitatOrganitzativa.nom"/></td>
				</tr>
				<tr>
					<td><s:label key="dataAlta"/></td>
				</tr>
				<tr>
					<td><s:label key="dataModificacio"/></td>
				</tr>
				<!-- 
				<tr>
					<td><s:label key="certificat"/></td>
				</tr>
				 -->
				<!-- Fi dades comuns dels usuaris -->
				<!-- Inici dades particulars del pacient -->
				<tr>
					<td><s:label key="grupSanguini" name="grupSanguini.nom"/></td>
				</tr>
				<tr><td>&nbsp;</td></tr>
				<!-- Alergies associades -->				
				<tr>
					<td class="subtable"><s:text name="alergies"/></td>
				</tr>
				<tr>
					<table>
						<s:iterator value="alergies" >
							<tr id="row_alergia_<s:property value="id"/>">
								<td><s:label name="descripcio"/></td>				
							</tr>
						</s:iterator>
					</table>
				</tr>
			</s:push>
		</s:form>
	</s:if>
</table>

<table class="actions" width="592">
	<tr><td>&nbsp;</td></tr>
	<tr><td><s:text name="actions"/></td></tr>
	<tr>
		<td><a href='<s:url action="showMetge" includeParams="none"/>'><s:text name="metge.go"/></a></td>	
		<td><a href='<s:url action="showPacients" includeParams="none"/>'><s:text name="pacients.go"/></a></td>	
		<td><a href='<s:url action="showHistorial"/>'><s:text name="historial.go"/></a></td>
		<td><a href="<s:url action="logout" includeParams="none"/>"><s:text name="logout"/></a></td>
	</tr>
</table>

<%@ include file="/WEB-INF/jsp/includes/footer.jsp"%>
